package com.dome.user.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.dome.base.service.IService;
import com.dome.client.entity.vo.out.PageOut;
import com.dome.user.entity.bo.UserEntity;
import com.dome.user.entity.query.UserQuery;
import com.dome.user.entity.vo.UserVO;

import java.util.List;

public interface UserService extends IService<UserEntity> {
    UserEntity test(Long id);

    /**
     * 分页（自定义返回分页VO）
     * @param query
     * @return
     */
    PageOut<List<UserVO>> getList(UserQuery query);

    /**
     * mybatis plus自带分页
     * @param query
     * @return
     */
    Page<List<UserVO>> pagePlus(UserQuery query);
}
